import { _decorator, Component, Node } from 'cc';
import { AbsAdapter } from '../Common/ListView';
import { MatchRankingItem } from './MatchRankingItem';

const { ccclass, property } = _decorator;

@ccclass('MatchRankingAdapter')
export class MatchRankingAdapter extends AbsAdapter {

    updateView(item:Node, posIndex: number) {
        let comp = item.getComponent(MatchRankingItem)
        if (comp) {
            let data = this.getItem(posIndex);
            comp.setData(data);
        }
    }

}


